SNMP walks from other host
Howdy Folks, How do i limit SNMP queries from other host outside of the host needed for management? the security team is kicking my butt on this one. Help
Cisco 9513 v3.2 and 9506s
all the best,
If the SNMP queries are sent via UDP, you can create an access list to deny UDP from any host, then permit TCP from any host. Once created, apply this access list to inbound packtes on the mgmt 0 interface. FM and DM use SNMP over TCP to access the MDS, as well as sometimes they use telnet or SSH under the covers to obtain info from the MDS CLI.
Here is a quick example:
pod4-9222i-98(config)# ip access-list nosnmp deny udp any any
pod4-9222i-98(config)# ip access-list nosnmp permit tcp any any
pod4-9222i-98(config)# int mgmt 0
pod4-9222i-98(config-if)# ip access-group nosnmp in
With this access list in place, you will not be able to use TFTP to load files...only FTP or SFTP.
Hope this helps,
Mike
Similar Messages
-
Security Exception when loading image from other host
Hi,
I have a signed webstart application, with 'all-permissions' set, which displays HTML in an JEditorPane.
The displayed HTML code contains an image tag which wants to load the image from another host. This results in a security exception.
I thought 'all-permissions' allows everything. Is there a workaround?
TIA
Chrissigning your app and specifying <all-permissions> in the security tag of the jnlp file will grant all permissions to all code loaded by the JNLPClassLoader.
In some cases your app or an extension it includes contains it's own classloader which dosnt extend SecureClassLoader, and so code loaded by that classloader will not be run with all-permissions when a SecurityManager is installed by Java Web Start. If this is the case you can get around this by calling:
Systerm.setSecurityManager(null).
To see what the specific cause in this case, you would have to post the exception thrown.
/Andy -
Hello Experts,
I tried SNMP walk from LMS for below OIDS but getting the error as attached..
MIB Name :- c2900PortDuplexState
OID's : 1.3.6.1.4.1.9.9.87.1.4.1.1.31
1.3.6.1.4.1.9.9.87.1.4.1.1.32
But while i do with OID 1.3.6.1.4.1.9.5.1.4.1.1.10 its showing the results.
My requirement is the pull the current negotiated Duplex status of interfaces, but with the OID 1.3.6.1.4.1.9.5.1.4.1.1.10 its only showing the configured values [ Auto , full or Half] not the negotiated duplex status if the port is in auto state. Please suggest.
Regards
DebenTopping up on Rolf's from cisco Object Navigator:
Object
c2900PortDuplexState
OID
1.3.6.1.4.1.9.9.87.1.4.1.1.31
Type
INTEGER
Permission
read-write
Status
current
Values
1 : fullduplex
2 : halfduplex
3 : autoNegotiate
MIB
CISCO-C2900-MIB ; - View Supporting Images
Description
"Set to fullduplex(1) to operate in full duplex mode, port
will allow simultaneous transmit and receive which can
double its bandwidth.
Set to halfduplex(2) to operate in half duplex mode.
Set to autoNegotiate(3) to allow the switch to negoti-
ate with the other end of the connection.
The status of duplex mode on a port is available with
c2900PortDuplexStatus object."
Object
c2900PortDuplexStatus
OID
1.3.6.1.4.1.9.9.87.1.4.1.1.32
Type
INTEGER
Permission
read-only
Status
current
Values
1 : fullduplex
2 : halfduplex
MIB
CISCO-C2900-MIB ; - View Supporting Images
Description
"The status of duplex mode on this port.
When linkbeat is not present, halfduplex is always
reported.
When linkbeat is present, the result of full duplex
auto-negotiation is reported if c2900PortDuplexState is
set to auto-negotiate, otherwise it reports fullduplex
if c2900PortDuplexState is set to fullduplex or
halfduplex if c2900PortDuplexState is set to
halfduplex."
Object
portDuplex
OID
1.3.6.1.4.1.9.5.1.4.1.1.10
Type
INTEGER
Permission
read-write
Status
current
Values
1 : half
2 : full
3 : disagree
4 : auto
MIB
CISCO-STACK-MIB ; - View Supporting Images
Description
"Indicates whether the port is operating in half-
duplex, full-duplex, disagree or auto negotiation
mode. If the port could not agree with the far end
on port duplex, the port will be in disagree(3)
mode."
Object
dot3StatsDuplexStatus
OID
1.3.6.1.2.1.10.7.2.1.19
Type
INTEGER
Permission
read-only
Status
current
Values
1 : unknown
2 : halfDuplex
3 : fullDuplex
MIB
EtherLike-MIB ; - View Supporting Images
Description
"The current mode of operation of the MAC
entity. 'unknown' indicates that the current
duplex mode could not be determined.
Management control of the duplex mode is
accomplished through the MAU MIB. When
an interface does not support autonegotiation,
or when autonegotiation is not enabled, the
duplex mode is controlled using
ifMauDefaultType. When autonegotiation is
supported and enabled, duplex mode is controlled
using ifMauAutoNegAdvertisedBits. In either
case, the currently operating duplex mode is
reflected both in this object and in ifMauType.
Note that this object provides redundant
information with ifMauType. Normally, redundant
objects are discouraged. However, in this
instance, it allows a management application to
determine the duplex status of an interface
without having to know every possible value of
ifMauType. This was felt to be sufficiently
valuable to justify the redundancy."
-Thanks -
How can i get the System Time from the other host
I want to get the System Time from the other host in the LAN,How can I get the Time using Java.
Such as I am in WIN 2000 and I have a Unix host in LAN, I want to get unix host System time, How can I do it.Open a socket to port 13 and read a string with the time.
-or-
Open a socket to port 27 and read 4 bytes that are a network order timestamp
Assuming that your UNIX machine has those services running, most do -
How to read a table from one host to other host
Hi Everybody,
How to read a table from one host to other host.
For Example,
a/a@abcd - host 1
b/b@xyz - host 2
suppose im having a table called emp in a/a@abcd
i want to read the table emp in b/b@xyz
how to do this.??
I know that we have to create a dblink...after that how to proceed.
Plz help..
Thanks in Advance,
Gitaconnected as scott/tiger@test
SQL>
CREATE DATABASE LINK local
CONNECT TO admin IDENTIFIED BY pinnet
USING 'pinnet';
Database link created.
sql>
select count(*) from
users@local;
COUNT(*)
16
Message was edited by:
jeneesh -
Can't communicate with other hosts from primary domain.
Hi all, I add vsw0 as below:
ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
ifconfig vsw0 plumb
ifconfig e1000g0 down unplumb
ifconfig vsw0 (ipaddressofserver) netmask 255.255.224.0 broadcast + up
mv /etc/hostname.e1000g0 /etc/hostname.vsw0
init 6
but now I can't communicate with other hosts from primary domain,if I plumb and up e1000g0 and down vsw0 ,everything is OK,what's wrong with it?Thanks.This is greate!I replaced e1000g0 with vsw0 now.
Could ldm automatic update the ldm configuration parameters?I created a file for the virtual disk,the output of ldm list-bindings as below:
......................ignore.............................
Vdisk: disk0 vol0@primary-vds0
service: primary-vds0 @ primary
......................ignore.................................
but when I updated some other parameters such as vsw,vnet,the vol0 became:
.................ignore.........................
Vdisk: disk0 primary-vds0-vol0@primary-vds0
service: primary-vds0
.......................ignore........................................
and the same time the primary-vds0-vol0 link with /dev/zvol/rdsk/domdisk/dom1,so the guest domain couldn't get the boot disk,I had to update it manunally.
Did you have the same issue?
Greetings fenglimian. -
No Oracle MIBs in SNMP walk queries (10g)
I configured SNMP support on my Oracle 10g database servers.
However, when I attempt an SNMP walk, I get a few MIBs from
SNMPv2 and HOST-RESOURCES, but nothing Oracle related,
which is my goal for installing the SNMP support.
Any hints or advice on where I should go from here? Do I need
to "load" some MIBs on these servers before they will show up?
Thanks,
ScottRed Hat Enterprise Linux, and I installed the Oracle SNMP, not the OS.
# chkconfig --list | grep snmp
snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
$ emctl status subagent
Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Sub agent is running..
It's setup to listen on port 1161, which I guess is Oracle default.
I receive all sorts of general system MIBs, but no Oracle MIBs...
I could just enable the Red Hat SNMP service much easier if all
I wanted to poll was for system related information. :)
Thanks,
Scott -
Hey guys,
I enabled SNMP to try to graph different things, and SNMP walk works but always times out after "hrSWRunPerfMem".
snmpwalk -v1 -c mycommunity localhost:
[snip]
HOST-RESOURCES-MIB::hrSWRunPerfMem.916 = INTEGER: 8656 KBytes
HOST-RESOURCES-MIB::hrSWRunPerfMem.926 = INTEGER: 4420 KBytes
HOST-RESOURCES-MIB::hrSWRunPerfMem.932 = INTEGER: 2800 KBytes
Timeout: No Response from localhost
After this error, I have to restart SNMP completely because it won't answer anymore. /var/log/snmpd.log shows nothing except the manual restarts.
I disabled almost everything except rocommunity and still get that error. There is no firewall enabled at all.
Any ideas?Fixed by using net-snmp from Macports.
-
SNMP traps from EMC SRM to SCOM 2012 R2
Hi,
I'm trying to configure SCOM 2012 R2 as an SNMP trap listner. I've seen many articles on setting this up but all are based around SNMP traps from network devices which must first be discovered and identified in the network device list.
However in my scenario I am trying to monitor/listen for traps send by a Linux box hosting EMC SRM - this management software can be configured to send SNMP traps out so it is these that I need to try and listen for/capture.
So can anyone explain how I can configure SCOM 2012 R2 to do this. I have tried to just used the IP of the Linux box and discover it as a network device but it fails - in Network Devices Pending Mgmt it says No response Ping, even though I can
ping the box from the Server OK - so I am guessing you cant cheat scom in discovering the Linux box as a network device in ths way?
Can anyone offer any advice for setting this up. Just to add I've ensured the RunAs Community String (public) and SNMP version is correct on both side...
Cheers...Once the Network Device (Linux server in this case) is discovered you will still need a rule that targets that class and accepts incoming SNMP Traps for that OID, or All OIDs if you prefer. I found 2 links that may be of help, the first is just a basic
overview of the SNMP listener in SCOM 2012 as it has changed from the OS Listener in 2007 to a dedicated one.
http://systemcentertech.com/2012/05/17/scom-2012-built-in-snmp-trap-listener/
The second link covers SNMP setup, but starting at Step 7 there is a great how-to on creating your own SNMP rule which will be needed to collect your traps.
http://scom-2012.blogspot.com/2012/07/setting-up-snmp-monitoring-in-scom-2012.html
www.Practice2Perfect.com -
SNMP Walk don't get IfName of Lots of Interfaces
Hello dear Specialists,
I am facing a problem with a ASR9010 with IOS XR 4.2.3 that is preventing me from monitoring major of the Ethernet Interfaces with SNMP Walk.
Though the router posseses IfMIB iso.3.6.1.2.1.2.2.1.2 and have created the correspondings IfIndex and IfName, it is impossible to get them with the commandds snmpwalk -v 2c -c public or snmpwalk -v 2c -c public Name iso.3.6.1.2.1.2.2.1.2.IfIndex from the server. Only two Ethernet interfaces, tunnel-interfaces and sub-interfaces (only Bunddles in this case) return in the output.
server~$ snmpwalk -v 2c -c public rdistcta5 iso.3.6.1.2.1.2.2.1.2
iso.3.6.1.2.1.2.2.1.2.41 = STRING: "GigabitEthernet0/6/0/13"
iso.3.6.1.2.1.2.2.1.2.298 = STRING: "TenGigE0/4/0/3"
iso.3.6.1.2.1.2.2.1.2.306 = STRING: "Bundle-Ether7.88"
iso.3.6.1.2.1.2.2.1.2.358 = STRING: "tunnel-te41"
iso.3.6.1.2.1.2.2.1.2.490 = STRING: "Bundle-Ether8.2192"....
ASR9k#sh snmp interface | i GigabitEthernet
Wed Apr 15 16:56:25.123 BRGMT
ifName : GigabitEthernet0/6/0/2 ifIndex : 30
ifName : GigabitEthernet0/6/0/3 ifIndex : 31
ifName : GigabitEthernet0/6/0/4 ifIndex : 32
ifName : GigabitEthernet0/6/0/5 ifIndex : 33
ifName : GigabitEthernet0/6/0/6 ifIndex : 34
ifName : GigabitEthernet0/6/0/7 ifIndex : 35
server~$ snmpwalk -v 2c -c public rdistcta5 iso.3.6.1.2.1.2.2.1.2.35
iso.3.6.1.2.1.2.2.1.2.35 = No Such Instance currently exists at this OID
I beg your precious opinions.
Thanks in advance
Best Regards,
RonieRestart Process.
(admin)#Process restart snmpd
(admin)#process restart mibd_entity
(admin)#process restart mibd_interface -
Snmp walk : javax.servlet.ServletException
Hello,
With lms3.1, from device center the first SNMP walk is OK.
When we try to do another snmp-walk either on the same device, either on another device , we recieve this error message:
Regards
Michel Misonne
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:100)
root cause
java.lang.OutOfMemoryError: unable to create new native thread
java.lang.Thread.start0(Native Method)
java.lang.Thread.start(Thread.java:574)
com.cisco.nm.lib.snmp.lib.MibStore.loadMibFile(MibStore.java:320)
com.cisco.nm.lib.snmp.lib.MibStore.loadMib(MibStore.java:313)
com.cisco.nm.lib.snmp.lib.SnmpMain.loadMib(SnmpMain.java:143)
com.cisco.nm.cmf.devicecenter.action.SnmpWalk_JT.snmpWalk(SnmpWalk_JT.java:466)
com.cisco.nm.cmf.devicecenter.action.SnmpWalk_JT.perform(SnmpWalk_JT.java:261)
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.cisco.nm.cmf.util.AccessLogFilter.doFilter(AccessLogFilter.java:100)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.Hello,
- Lms is installed on Windows 2003 SRV enterprise edition SP1
- Swap space is Min 4096 Mg and Max 8192 Mg
- This pb appears with any starting OID
Also, this problem appears with different client-PC, the first time it is OK, then the next time it gives this errors on different PC.
Customer has to wait another time ( next day) to make it work again.
Michel Misonne -
CSCuc21944 - N4K PFMA Crash During SNMP Walk of "Entity Type Phy PS Fan" MIB
On the Nexus 4000, how can I configure SNMP to block polling of the Entity MIB??
CSCuc21944 Bug Details
N4K PFMA Crash During SNMP Walk of "Entity Type Phy PS Fan" MIB
Symptom:
Nexus 4k switch crashes during SNMP polling of the Entity MIB (1.3.6.1.2.1.47).
Conditions:
SNMP polling enabled
Workaround:
Disconnect the 4k from the SNMP server. Block the offending MIB.This workaround was more theoretical than actual. NX-OS does not allow for SNMP Views like IOS does. We are in the process of updating this bug to remove that statement. However, the fixed version of code for the N4K is now available at http://software.cisco.com/download/release.html?mdfid=282819252&flowid=3091&softwareid=282088129&release=4.1(2)E1(1i)&relind=AVAILABLE&rellifecycle=&reltype=latest . Sorry for the confusion.
-
Can I move a Virtual Domain Controller from one host(Win Server 2008 R2) to another (Win Server 2012 R2) ? Are there any issues?
I also had this error: "Setup cannot continue. Your computer will now restart, and your previous version of Windows will be restored."
trying to do a in-place upgrade of a Domain Controller Windows 2008 R2 to Windows 2012 R2.
The problem was the separated System Reserved Partition. After I removed using this instructions:
http://jacobackerman.blogspot.com/2012/12/how-to-remove-system-reserved-partition.html
The upgrade ran ok, and now have my DC as Windows 2012 R2.
Hope that helps!. -
Recover database on the other host
I have to recover my database on the other host.
In my source machine(redhat5,x86_64) I installed oracle 10g (10.2.0.1), sid=orapro, archive_mode=on, flash_area_recovery=default.
RMAN - AUTOBACKUP=ON, CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
In new host (zlinux) I install oracle 10g (10.2.0.2.0). I has used DBCA and create a new database, with the same SID=orapro, archive_mode=on, flash_area_recovery=default.
RMAN - AUTOBACKUP=ON, CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
Backup:
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/dados/db/oracle/product/10.2.0/db_1/dbs/snapcf_orapro.f'; # default
RMAN> backup database;
BS Key Type LV Size Device Type Elapsed Time Completion Time
6 Full 522.79M DISK 00:00:06 10-JUN-08
BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20080610T112043
Piece Name: /dados/db/oracle/flash_recovery_area/ORAPRO/backupset/2008_06_10/o1_mf_nnndf_TAG20080610T112043_44x6ycvx_.bkp
List of Datafiles in backup set 6
File LV Type Ckp SCN Ckp Time Name
1 Full 608723 10-JUN-08 /dados/oradata/orapro/system01.dbf
2 Full 608723 10-JUN-08 /dados/oradata/orapro/undotbs01.dbf
3 Full 608723 10-JUN-08 /dados/oradata/orapro/sysaux01.dbf
4 Full 608723 10-JUN-08 /dados/oradata/orapro/users01.dbf
5 Full 608723 10-JUN-08 /dados/oradata/orapro/rman_ts
BS Key Type LV Size Device Type Elapsed Time Completion Time
7 Full 6.80M DISK 00:00:01 10-JUN-08
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20080610T112050
Piece Name: /dados/db/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_10/o1_mf_s_657026450_44x6ylyd_.bkp
Control File Included: Ckp SCN: 608730 Ckp time: 10-JUN-08
SPFILE Included: Modification time: 10-JUN-08
I sent the backupset and autobackup files from source machine to new host.
And alter the name of server parameter file 'spfileorapro.ora' on new host for 'spfileorapro-1.ora'.
Recover:
$rman target /
RMAN> set dbid 'dbid_source_machine'
RMAN> startup nomount
LRM-00109: could not open parameter file '/dados/u01/app/oracle/product/10.2.0/db_1/dbs/initorapro.ora'
RMAN> restore spfile to pfile '/dados/u01/app/oracle/product/10.2.0/db_1/dbs/initorapro.ora' from '/dados/u01/app/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_10/o1_mf_s_657026450_44x6ylyd_.bkp';
Starting restore at 11-JUN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/11/2008 09:10:01
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
I get the error above.
Can anybody help me?
Thanks!I try now:
RMAN> run{
2> set controlfile autobackup format for device type disk to
3> '/dados/u01/app/oracle/flash_recovery_area/%F';
4> restore controlfile from autobackup;}
executing command: SET CONTROLFILE AUTOBACKUP FORMAT
Starting restore at 11-JUN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/11/2008 15:51:04
ORA-19625: erro ao identificar arquivo /dados/u01/app/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_11/o1_mf_s_657128589_450bvsnq_.bkp
ORA-27047: UNABLE TO READ THE HEADER BLOCK OF FILE
Additional information: 2
Corrupt file? Version problem?
Source machine 10.2.0.1 and new host 10.2.0.2.
Compatibility?
Marcos -
I am not able to access the application from other PCs in network
Hi Friends,
I am a newbie in this field and building an internal application for employees of my org. The HR will enter all the informations regarding a particular employee and it will get stored in the Oracle DataBase(10g).When the admin users will want to know information about a particular emp they will put the emp_code and it will retrieve all the information of that particular emp.For that I am using Oracle AS(10g).After the deployment of the apllication(.war file) in the AS(10g), when I access the URl- http://10.0.37.51:7777/emp/... from my machine (where 10.0.37.51 is the IP Address of my system where server is installed) the application runs properly but when i give the same url from other pcs the whole application does not run properly it gives an error msg http://d6z5sb1s:7777/...not accessible.. can any of my forum friend help me out to solve the problem.I will be thankful to you..
Regards,
Prasenjit Biswas
[email protected]Here I am using Java Type IV for database
connection.
So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.
Maybe you are looking for
-
Trying to copy a single page from one Adobe Muse site to another Adobe Muse site?
Is there a way to copy a single page from one site to another within Muse (both muse sites)? What exactly does the "Export Page" direction do? I can't seem to determine how to "import" that page?
-
I M having issue in resting Ipad mini 2 without itunes i tried manual restore but it hang on black screen with loading sign plZ help
-
How to connect to SQL Server from Forms 10g?
Hello all, How do we connect to SQL Server database from Forms 10g? In Oracle Metalink site they have suggested using Transparent Gateway for SQL Server as a solution. But is there a way we can connect directly to SQL Server from Forms using an ODBC
-
I want to uninstall and do fresh & complete install instead of the upgrade
It didn't give me an option, it just installed on top od 10.4 I want to empty our and do a fresh and complete install but not the upgrade install. I had 10.4 and now I have upgrade to 10.5 Can you tell me how to do this please.
-
Problem with the connection wi fi and bluetooth
I can not activate the box for "wi fi" and the box "bluetooth" in my device, when I activate the "check" my device removes it- My device is 9800 torch-can you tell me why is the problem..?? Can send me a answer to my e mail [personal information remo