nv-l
[Top] [All Lists]

RE: [nv-l] Inserting and deleting resources on Netview thru comm a nd l

To: "'Marcos Antonio Pezzutti Filho'" <pezzutti@banespa.com.br>
Subject: RE: [nv-l] Inserting and deleting resources on Netview thru comm a nd line
From: "Qureshi, Fawad" <Fawad.Qureshi@ssa.gov>
Date: Wed, 15 Oct 2003 10:43:17 -0400
Cc: "'nv-l@lists.us.ibm.com'" <nv-l@lists.us.ibm.com>
Delivery-date: Wed, 15 Oct 2003 15:55:45 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l-digest@lists.us.ibm.com

Marcos,

 

I use /usr/OV/bin/nvmaputil.sh to delete devices and /usr/OV/bin/loadhosts to add devices to Netview. Following is an example in Perl:

 

#Delete operation:

 

# drop any unwanted characters - only keep 0-9, A-Z, a-z, -, and .

$router =~ s/[^ 0-9A-Za-z-.]//g;

# Start Delete operation

print "<br>Performing delete operation on $router <br>";

$cmd2 = "/usr/OV/bin/nvmaputil.sh --delete $router";

$DeleteInfo = `$cmd2`;

           if ($DeleteInfo eq "") {

           print "$router deleted from Netview - Attempting removal from system and seed files";

 

#Add operation:

 

$cmd = "echo $IPaddr $router | /usr/OV/bin/loadhosts -m $netmask";

$cmdMail = "echo $IPaddr $router | mailx fawad.qureshi\@ssa.gov";

$rv = `$cmd`;

$rv1 = `cmdMail`;

 

saludos,

 

Fawad

 

-----Original Message-----
From: Marcos Antonio Pezzutti Filho [mailto:pezzutti@banespa.com.br]
Sent: Tuesday, October 14, 2003 6:56 PM
To: 'Qureshi, Fawad'
Cc: 'nv-l@lists.us.ibm.com'
Subject: RES: [nv-l] Inserting and deleting resources on Netview thru comm a nd line

 

Fawad,

 

I´ve looked into /usr/OV/bin directory and found a script nvmaputil.sh with this content:

 

NETVIEW_HOME=/usr/OV
JAVA_HOME=$NETVIEW_HOME/jre
JAVA=$JAVA_HOME/bin/java
JAVA_OPTIONS=-Xmx64M

 

#Grab the standard netview run time environment
. /usr/OV/bin/NVenvironment

 

RUN_CMD="${JAVA} ${JAVA_OPTIONS} -jar /usr/OV/jars/maputil.jar --logconfig /usr/OV/conf/maputil-log4j.properties $@"

 

$RUN_CMD

 

But there is no manual or help about this script.

 

Could you explain me more about it ?

 

Att,

 

Marcos Pezzutti

 

-----Mensagem original-----
De: Qureshi, Fawad [mailto:Fawad.Qureshi@ssa.gov]
Enviada em: Tuesday, October 14, 2003 19:27
Para: 'nv-l@lists.us.ibm.com'; 'pezzutti@banespa.com.br'
Assunto: RE: [nv-l] Inserting and deleting resources on Netview thru comma nd line

Marcos,

 

If you are looking to add / delete devices to Netview via command line, look into nvmaputil command. I believe it is part of Netview 7.1.2. I wrote a perl script that uses this command on Netview 7.1.3, it works like a charm.

 

Fawad

 

-----Original Message-----
From: Marcos Antonio Pezzutti Filho [mailto:pezzutti@banespa.com.br]
Sent: Tuesday, October 14, 2003 5:56 PM
To: NV-L (nv-l@lists.tivoli.com)
Subject: [nv-l] Inserting and deleting resources on Netview thru command line

 

Dear friends,

The environment:
Tivoli Netview 7.1.2
O.S.: AIX 4.3.3 ML-10
Tivoli Framework 3.7.1

We´d like to know if it´s possible to insert and delete resources thru the commands ?
We are planning to develop a script to automate this kind of action.
We know that threre a lot of things to consider, but the solution maintance has been increased tremendously.

Thanks in advance,

Marcos Antonio Pezzutti Filho
Superintendência de Telecomunicações     
Grupo Santander Banespa
Newtrend - Tendências Tecnológicas Serv  Inf.e Telecom Ltda.
 É Fone: 3837-1339     Ê Fax:  5538-5227

"Essa  mensagem é  destinada  exclusivamente ao seu destinatário e pode
 conter informações confidenciais, protegidas por sigilo profissional ou
cuja  divulgação  seja  proibida por  lei. O uso não autorizado de tais
informações  é   proibido  e  está   sujeito  às  penalidades cabíveis.
 

This message is intended exclusively for its addressee and may  contain
 information   that   is  confidential,  protected  by   a  professional
privilege or which disclosure is prohibited by law. Unauthorized use of
 such information is prohibited and subject to applicable penalties."

"Essa mensagem é destinada exclusivamente ao seu destinatário e pode

conter informações confidenciais, protegidas por sigilo profissional ou

cuja divulgação seja proibida por lei. O uso não autorizado de tais

informações é proibido e está sujeito às penalidades cabíveis.


This message is intended exclusively for its addressee and may contain

information that is confidential, protected by a professional

privilege or which disclosure is prohibited by law. Unauthorized use of

such information is prohibited and subject to applicable penalties."


<Prev in Thread] Current Thread [Next in Thread>
  • RE: [nv-l] Inserting and deleting resources on Netview thru comm a nd line, Qureshi, Fawad <=

Archive operated by Skills 1st Ltd

See also: The NetView Web