lunes, 23 de junio de 2008

Auth Java Netbackup


The following is a correct example of the auth.conf file.

root ADMIN=ALL JBP=ALL
user1 ADMIN=ALL JBP=ALL
user2 ADMIN=JBP+BPM+DM+MM+REP+AM JBP=ALL
user3 ADMIN=ALL JBP=ALL
user4 ADMIN=JBP+AM JBP=ALL
user5 ADMIN=JBP+REP+AM JBP=ALL
* ADMIN=JBP JBP=ENDUSER+BU+ARC

BPM = Police Management
JBP =
DM = Device Management
AM = Admin Monitor

sábado, 14 de junio de 2008

How to configure NIC in LINUX

To configure a static IP (an IP that will never change) in debian you must edit the file
/etc/networking/interfaces and put the following:

CODE

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0


iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1


The last section is the most important, the top may or may not be the same so don't play with it unless you get an error. In this case the IP of the server is 192.168.1.10 so if you run it as a DNS server for example, you can set that in your router's config and not worry about it changing.

To apply this configuration type /etc/init.d/networking restart

You'll get a message that it's restarting the network interface, then you'll get booted off ssh (because the IP changed) so reconnect using the new IP and it should work.

In red hat this file is /etc/sysconfig/network-scripts/ifcfg-eth0 and you would put this in it:

CODE

DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

To apply this configuration type /etc/init.d/network restart

How to configure NIC in Solaris 10

1. Loging as root.

root@agendacon # id
uid=0(root) gid=0(root)

2. Enable NIC with it's drivers:

root@agendacon # ifconfig -a plumb

3. View which interfaces are available

root@agendacon # ifconfig -a


lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843 mtu 1500 index 2
inet 172.28.255.240 netmask fffffc00 broadcast 172.28.255.255
groupname ipmp1
ether 0:3:ba:9b:ab:e9
bge0:1: flags=9040843 mtu 1500 index 2
inet 172.28.255.238 netmask fffffc00 broadcast 172.28.255.255
bge1: flags=19040803 mtu 1500 index 3
inet 172.28.255.239 netmask fffffc00 broadcast 172.28.255.255
groupname ipmp1
ether 0:3:ba:9b:ab:ea
bge2: flags=1000802 mtu 1500 index 5
inet 0.0.0.0 netmask 0
ether 0:3:ba:9b:ab:eb
bge3: flags=1000802 mtu 1500 index 6
inet 0.0.0.0 netmask 0
ether 0:3:ba:9b:ab:ec



4. Identify the interface you want to configure:


root@agendacon # ifconfig bge3

bge3: flags=1000802 mtu 1500 index 6
inet 0.0.0.0 netmask 0
ether 0:3:ba:9b:ab:ec


5. Configure IP Address and Default gateway:

root@agendacon # ifconfig bge3 192.168.100.200 netmask 255.255.255.0 up
root@agendacon # ifconfig bge3
bge3: flags=1000803 mtu 1500 index 6
inet 192.168.100.200 netmask ffffff00 broadcast 192.168.100.255
ether 0:3:ba:9b:ab:ec

root@agendacon # route add default 192.168.100.254
add net default: gateway 192.168.100.254

root@agendacon # netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.100.0 192.168.100.200 U 1 0 bge3
default 192.168.100.254 UG 1 0
127.0.0.1 127.0.0.1 UH 2 36 lo0
root@agendacon #

6. To delete old default router:

root@agendacon # route delete default 192.168.100.1
delete net default: gateway 192.168.100.1

7. Make permanent the previous changes.

# vi /etc/hosts
127.0.0.1 localhost
192.168.100.200 myhostname
:wq! (save and quit)

# vi /etc/inet/hosts
127.0.0.1 localhost
192.168.100.200 myhostname
:wq! (save and quit)

# vi /etc/hostname.bge3
myhostname
:wq! (save and quit)

# vi /etc/netmasks
192.168.100.0 255.255.255.xxx
:wq! (save and quit)

# vi /etc/defaultrouter
192.168.100.254
:wq! (save and quit)