summaryrefslogtreecommitdiffstats
path: root/web/attachments/27581-z
blob: fb3e37c965e8afe4748b47dcd47a2611234caf3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- check_snmp.c.cln	Tue Jul 23 09:42:21 2002
+++ check_snmp.c	Tue Jul 23 09:42:50 2002
@@ -145,8 +145,8 @@
 	/* create the command line to execute */
 	command_line = ssprintf
 		(command_line,
-		 "%s -m ALL -v 1 %s %s %s",
-		 PATH_TO_SNMPGET, server_address, community, oid);
+		 "%s -m ALL -v 1 -c %s %s %s",
+		 PATH_TO_SNMPGET, community, server_address, oid);
 
 	/* run the command */
 	child_process = spopen (command_line);
--- check_hpjd.c.cln	Tue Jul 23 09:45:16 2002
+++ check_hpjd.c	Tue Jul 23 09:46:00 2002
@@ -135,8 +135,8 @@
 		 HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
 
 	/* get the command to run */
-	sprintf (command_line, "%s -m : -v 1 %s %s %s", PATH_TO_SNMPGET, address,
-					 community, query_string);
+	sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET,
+					 community, address, query_string);
 
 	/* run the command */
 	child_process = spopen (command_line);