Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.100.160
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
snmp /
mib2c-data /
[ HOME SHELL ]
Name
Size
Permission
Action
default-mfd-top.m2c
4.24
KB
-rw-r--r--
details-enums.m2i
2.59
KB
-rw-r--r--
details-node.m2i
3.35
KB
-rw-r--r--
details-table.m2i
999
B
-rw-r--r--
generic-ctx-copy.m2i
1007
B
-rw-r--r--
generic-ctx-get.m2i
3.47
KB
-rw-r--r--
generic-ctx-set.m2i
1007
B
-rw-r--r--
generic-data-allocate.m2i
1.59
KB
-rw-r--r--
generic-data-context.m2i
1.49
KB
-rw-r--r--
generic-get-U64.m2i
517
B
-rw-r--r--
generic-get-char.m2i
1.58
KB
-rw-r--r--
generic-get-decl-bot.m2i
760
B
-rw-r--r--
generic-get-decl.m2i
1.41
KB
-rw-r--r--
generic-get-long.m2i
519
B
-rw-r--r--
generic-get-oid.m2i
597
B
-rw-r--r--
generic-header-bottom.m2i
586
B
-rw-r--r--
generic-header-top.m2i
605
B
-rw-r--r--
generic-source-includes.m2i
794
B
-rw-r--r--
generic-table-constants.m2c
1.43
KB
-rw-r--r--
generic-table-enums.m2c
1.79
KB
-rw-r--r--
generic-table-indexes-from-oid...
2.14
KB
-rw-r--r--
generic-table-indexes-set.m2i
3.97
KB
-rw-r--r--
generic-table-indexes-to-oid.m...
1.61
KB
-rw-r--r--
generic-table-indexes-varbind-...
1.42
KB
-rw-r--r--
generic-table-indexes.m2i
2.17
KB
-rw-r--r--
generic-table-oids.m2c
3.43
KB
-rw-r--r--
generic-value-map-func.m2i
3.64
KB
-rw-r--r--
generic-value-map-reverse.m2i
1.49
KB
-rw-r--r--
generic-value-map.m2i
1.35
KB
-rw-r--r--
m2c-internal-warning.m2i
1.36
KB
-rw-r--r--
m2c_setup_enum.m2i
949
B
-rw-r--r--
m2c_setup_node.m2i
10.1
KB
-rw-r--r--
m2c_setup_table.m2i
1.62
KB
-rw-r--r--
m2c_table_save_defaults.m2i
4.37
KB
-rw-r--r--
mfd-access-container-cached-de...
17.68
KB
-rw-r--r--
mfd-access-unsorted-external-d...
40.09
KB
-rw-r--r--
mfd-data-access.m2c
10.31
KB
-rw-r--r--
mfd-data-get.m2c
4.87
KB
-rw-r--r--
mfd-data-set.m2c
4.72
KB
-rw-r--r--
mfd-doxygen.m2c
2.38
KB
-rw-r--r--
mfd-interactive-setup.m2c
11.79
KB
-rw-r--r--
mfd-interface.m2c
51.4
KB
-rw-r--r--
mfd-makefile.m2m
4.01
KB
-rw-r--r--
mfd-persistence.m2i
14.93
KB
-rw-r--r--
mfd-readme.m2c
29.72
KB
-rw-r--r--
mfd-top.m2c
16.95
KB
-rw-r--r--
node-get.m2i
3.6
KB
-rw-r--r--
node-set.m2i
7.52
KB
-rw-r--r--
node-storage.m2i
648
B
-rw-r--r--
node-validate.m2i
2.48
KB
-rw-r--r--
node-varbind-validate.m2i
2.02
KB
-rw-r--r--
parent-dependencies.m2i
1.89
KB
-rw-r--r--
parent-set.m2i
14.38
KB
-rw-r--r--
subagent.m2c
6.33
KB
-rw-r--r--
syntax-COUNTER64-get.m2i
1.13
KB
-rw-r--r--
syntax-DateAndTime-get.m2d
319
B
-rw-r--r--
syntax-DateAndTime-get.m2i
2.08
KB
-rw-r--r--
syntax-DateAndTime-readme.m2i
288
B
-rw-r--r--
syntax-InetAddress-get.m2i
2.89
KB
-rw-r--r--
syntax-InetAddress-set.m2i
852
B
-rw-r--r--
syntax-InetAddressType-get.m2i
980
B
-rw-r--r--
syntax-InetAddressType-set.m2i
938
B
-rw-r--r--
syntax-RowStatus-dependencies....
4.47
KB
-rw-r--r--
syntax-RowStatus-get.m2i
2.35
KB
-rw-r--r--
syntax-RowStatus-varbind-valid...
600
B
-rw-r--r--
syntax-StorageType-dependencie...
711
B
-rw-r--r--
syntax-TestAndIncr-get.m2i
753
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : subagent.m2c
############################################################# -*- c -*- ## generic include for XXX. Do not use directly. ######################################################################## @if $m2c_mark_boundary == 1@ /** START code generated by subagent.m2c */ @end@ ######################################################################## ## @if 0@ @open ${name}_subagent.h@ /* * Note: this file originally auto-generated by mib2c * using subagent.m2c */ @include generic-header-top.m2i@ @include generic-header-bottom.m2i@ @end@ ###################################################################### ## Do the .c file ###################################################################### @open ${name}_subagent.c@ /* * Note: this file originally auto-generated by mib2c * using subagent.m2c */ @include generic-source-includes.m2i@ #include <signal.h> /* * If compiling within the net-snmp source code, this will trigger the feature * detection mechansim to ensure the agent_check_and_process() function * is left available even if --enable-minimialist is turned on. If you * have configured net-snmp using --enable-minimialist and want to compile * this code externally to the Net-SNMP code base, then please add * --with-features="agent_check_and_process enable_stderrlog" to your * configure line. */ netsnmp_feature_require(agent_check_and_process); netsnmp_feature_require(enable_stderrlog); static int keep_running; static RETSIGTYPE stop_server(int a) { keep_running = 0; } static void usage(void) { printf("usage: $name [-D<tokens>] [-f] [-L] [-M] [-H] [LISTENING ADDRESSES]\n" "\t-f Do not fork() from the calling shell.\n" "\t-DTOKEN[,TOKEN,...]\n" "\t\tTurn on debugging output for the given TOKEN(s).\n" "\t\tWithout any tokens specified, it defaults to printing\n" "\t\tall the tokens (which is equivalent to the keyword 'ALL').\n" "\t\tYou might want to try ALL for extremely verbose output.\n" "\t\tNote: You can't put a space between the -D and the TOKENs.\n" "\t-H\tDisplay a list of configuration file directives\n" "\t\tunderstood by the agent and then exit.\n" "\t-M\tRun as a normal SNMP Agent instead of an AgentX sub-agent.\n" "\t-x ADDRESS\tconnect to master agent at ADDRESS (default /var/agentx/master).\n" "\t-L\tDo not open a log file; print all messages to stderr.\n"); exit(0); } int main (int argc, char **argv) { int agentx_subagent=1; /* change this if you want to be a SNMP master agent */ /* Defs for arg-handling code: handles setting of policy-related variables */ int ch; extern char *optarg; int dont_fork = 0, use_syslog = 0; char *agentx_socket = NULL; while ((ch = getopt(argc, argv, "D:fHLM-:x:")) != EOF) switch(ch) { case '-': if (strcasecmp(optarg, "help") == 0) { usage(); } handle_long_opt(optarg); break; case 'D': debug_register_tokens(optarg); snmp_set_do_debugging(1); break; case 'f': dont_fork = 1; break; case 'H': netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_NO_ROOT_ACCESS, 1); init_agent("$name"); /* register our .conf handlers */ init_$name(); init_snmp("$name"); fprintf(stderr, "Configuration directives understood:\n"); read_config_print_usage(" "); exit(0); case 'M': agentx_subagent = 0; break; case 'L': use_syslog = 0; /* use stderr */ break; case 'x': agentx_socket = optarg; break; default: fprintf(stderr,"unknown option %c\n", ch); usage(); } if (optind < argc) { int i; /* * There are optional transport addresses on the command line. */ DEBUGMSGTL(("snmpd/main", "optind %d, argc %d\n", optind, argc)); for (i = optind; i < argc; i++) { char *c, *astring; if ((c = netsnmp_ds_get_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_PORTS))) { astring = malloc(strlen(c) + 2 + strlen(argv[i])); if (astring == NULL) { fprintf(stderr, "malloc failure processing argv[%d]\n", i); exit(1); } sprintf(astring, "%s,%s", c, argv[i]); netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_PORTS, astring); SNMP_FREE(astring); } else { netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_PORTS, argv[i]); } } DEBUGMSGTL(("snmpd/main", "port spec: %s\n", netsnmp_ds_get_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_PORTS))); } /* we're an agentx subagent? */ if (agentx_subagent) { /* make us a agentx client. */ netsnmp_enable_subagent(); if (NULL != agentx_socket) netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_X_SOCKET, agentx_socket); } snmp_disable_log(); if (use_syslog) snmp_enable_calllog(); else snmp_enable_stderrlog(); /* daemonize */ if(!dont_fork) { int rc = netsnmp_daemonize(1,!use_syslog); if(rc) exit(-1); } /* initialize tcp/ip if necessary */ SOCK_STARTUP; /* initialize the agent library */ init_agent("$name"); /* init $name mib code */ init_$name(); /* read ${name}.conf files. */ init_snmp("$name"); /* If we're going to be a snmp master agent, initial the ports */ if (!agentx_subagent) init_master_agent(); /* open the port to listen on (defaults to udp:161) */ /* In case we recevie a request to stop (kill -TERM or kill -INT) */ keep_running = 1; signal(SIGTERM, stop_server); signal(SIGINT, stop_server); /* you're main loop here... */ while(keep_running) { /* if you use select(), see snmp_select_info() in snmp_api(3) */ /* --- OR --- */ agent_check_and_process(1); /* 0 == don't block */ } /* at shutdown time */ snmp_shutdown("$name"); SOCK_CLEANUP; exit(0); } ######################################################################## @if $m2c_mark_boundary == 1@ /** END code generated by subagent.m2c */ @end@
Close