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
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 $@"
But there is no manual or
help about this script.
Could you explain me more
about it ?
-----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."