Sponsored Content
Top Forums Shell Programming and Scripting Check unused ports in a given range and assign an open one Post 302989220 by user052009 on Tuesday 10th of January 2017 05:24:56 AM
Old 01-10-2017
Hi Robin. These aren't database listeners. As mentioned earlier, they're gateway listeners and a listener for MSSQL has to be configured differently to one for say DRDA. They cannot be shared.
 

9 More Discussions You Might Find Interesting

1. Cybersecurity

closing open ports

/* Linux Slackware */ Nmap shows the following ports open on the gateway. 21/tcp ftp 22/tcp ssh 23/tcp telnet 25/tcp smtp 37/tcp time 80/tcp http 113/tcp auth 515/tcp printer 587/tcp submission 1024/tcp kdm 6000/tcp x11 ------------------------------- i would like to close as... (10 Replies)
Discussion started by: LowOrderBit
10 Replies

2. Shell Programming and Scripting

Check open ports every ...

Hello, i need a script (bash type maybe?..), which would check open ports on 127.0.0.1 and then compare open ports with "registered/allowed" port list and try to kill the program who uses unregistered ports. It would be great that script would be started lets say every 5 or 10 minutes. You see i... (2 Replies)
Discussion started by: MorchiuS
2 Replies

3. Shell Programming and Scripting

filtering a range of ports out of a netstat output

i'd like to grep a range of ports on a netstat -nt output, localaddress, say :1 to :1023. how do i do it via sed/awk/grep? Thanks, Marc (1 Reply)
Discussion started by: marcpascual
1 Replies

4. UNIX for Dummies Questions & Answers

open ports solaris 8

Hello, I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1012-1020 (which are reserved ports according to the IANA. Lsof does not identify these. One server has all these on and one server just has 1017. *.1023 ... (3 Replies)
Discussion started by: csross
3 Replies

5. Solaris

open ports solaris 8

Hello, I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1013-1023 (which are reserved ports according to the IANA. Lsof does not identify these. I rebooted the server and they went off, but this morning I saw they were all back on again. Any... (1 Reply)
Discussion started by: csgonan
1 Replies

6. Shell Programming and Scripting

Sheel Scripting to lock 2 TCP unused ports in solaris and linux

My requirement is I need to write a program in shell scripting to check 2 TCP unused unique port numbers in SOLARIS and I have to lock the same ports so that it will not be used in any other new process and the same port numbers should be used and locked in the LINUX machine to communicate... (2 Replies)
Discussion started by: sreeramr30
2 Replies

7. Solaris

Open ports in solaris 10

hi guys, may i know the exact steps to open a port in solaris.i have some rough idea - which is adding the port number in /etc/services. but i am not sure the correct conventions, steps or any other steps. kindly advise.thanks guys ! (1 Reply)
Discussion started by: cromohawk
1 Replies

8. AIX

locking down unused or unwanted ports in AIX

We have a system and we have modified the /etc/ind.conf and the /etc/services and the /etc/rc.tcpip file to turn off specific applications. I need to know what is the correct procedure for locking down unused ports that still appear to be in a listen mode even... (1 Reply)
Discussion started by: admaix
1 Replies

9. Shell Programming and Scripting

based on range assign a value

Hello, I have a file with multiple columns of which the first two columns are like a1_144601_144650 ABC_yellow_144608_16785 a1_144651_144700 ABC_yellow_144608_16785 a1_144701_144751 ABC_yellow_144608_16785 So Based on column 1 (red values) I need to check if its falling in... (3 Replies)
Discussion started by: Diya123
3 Replies
fence_virtd.conf(5)						File Formats Manual					       fence_virtd.conf(5)

NAME
fence_virt.conf - configuration file for fence_virtd DESCRIPTION
The fence_virt.conf file contains configuration information for fence_virtd, a fencing request routing daemon for clusters of virtual machines. The file is tree-structured. There are parent/child relationships and sibling relationships between the nodes. foo { bar { baz = "1"; } } There are three primary sections of fence_virt.conf. SECTIONS
fence_virtd This section contains global information about how fence_virtd is to operate. The most important pieces of information are as follows: listener the listener plugin for receiving fencing requests from clients backend the plugin to be used to carry out fencing requests foreground do not fork into the background. wait_for_init wait for the frontend and backends to become available rather than giving up immediately. This replaces wait_for_backend in 0.2.x. module_path the module path to search for plugins listeners This section contains listener-specific configuration information; see the section about listeners below. backends This section contains listener-specific configuration information; see the section about listeners below. groups This section contains static maps of which virtual machines may fence which other virtual machines; see the section about groups below. LISTENERS
There are various listeners available for fence_virtd, each one handles decoding and authentication of a given fencing request. The fol- lowing configuration blocks belong in the listeners section of fence_virt.conf multicast key_file the shared key file to use (default: /etc/cluster/fence_xvm.key). hash the weakest hashing algorithm allowed for client requests. Clients may send packets with stronger hashes than the one specified, but not weaker ones. (default: sha256, but could be sha1, sha512, or none) auth the hashing algorithm to use for the simplistic challenge-response authentication (default: sha256, but could be sha1, sha512, or none) family the IP family to use (default: ipv4, but may be ipv6) address the multicast address to listen on (default: 225.0.0.12) port the multicast port to listen on (default: 1229) interface interface to listen on. By default, fence_virtd listens on all interfaces. However, this causes problems in some environments where the host computer is used as a gateway. serial The serial listener plugin utilizes libvirt's serial (or VMChannel) mapping to listen for requests. When using the serial listener, it is necessary to add a serial port (preferably pointing to /dev/ttyS1) or a channel (preferrably pointing to 10.0.2.179:1229) to the libvirt domain description. Note that only type unix , mode bind serial ports and channels are supported. Example libvirt XML: <serial type='unix'> <source mode='bind' path='/sandbox/guests/fence_socket_molly'/> <target port='1'/> </serial> <channel type='unix'> <source mode='bind' path='/sandbox/guests/fence_molly_vmchannel'/> <target type='guestfwd' address='10.0.2.179' port='1229'/> </serial> uri the URI to use when connecting to libvirt by the serial plugin. path Sockets must reside in this directory in order to be considered valid. This can be used to prevent fence_virtd from using the wrong sockets. mode This selects the type of sockets to register. Valid values are "serial" (default) and "vmchannel". BACKENDS
There are various backends available for fence_virtd, each one handles routing a fencing request to a hypervisor or management tool. The following configuration blocks belong in the backends section of fence_virt.conf libvirt The libvirt plugin is the simplest plugin. It is used in environments where routing fencing requests between multiple hosts is not required, for example by a user running a cluster of virtual machines on a single desktop computer. uri the URI to use when connecting to libvirt. libvirt-qpid The libvirt-qpid plugin acts as a QMF Console to the libvirt-qpid daemon in order to route fencing requests over AMQP to the appropriate computer. There are currently no configuration options for libvirt-qpid. host host or IP address of qpid broker. Defaults to 127.0.0.1. port IP port of qpid broker. Defaults to 5672. username Username for GSSAPI, if configured. service Qpid service to connect to. gssapi If set to 1, have fence_virtd use GSSAPI for authentication when communicating with the Qpid broker. Default is 0 (off). checkpoint The checkpoint plugin uses CMAN, CPG, and OpenAIS checkpoints to track virtual machines and route fencing requests to the appropriate com- puter. uri the URI to use when connecting to libvirt by the checkpoint plugin. name_mode The checkpoint plugin, in order to retain compatibility with fence_xvm, stores virtual machines in a certain way in the OpenAIS checkpoints. The default was to use 'name' when using fence_xvm and fence_xvmd, and so this is still the default. However, it is strongly recommended to use 'uuid' instead of 'name' in all cluster environments involving more than one physical host in order to avoid the potential for name collisions. GROUPS
Fence_virtd supports static maps which allow grouping of VMs. The groups are arbitrary and are checked at fence time. Any member of a group may fence any other member. Hosts may be assigned to multiple groups if desired. group This defines a group. uuid defines UUID as a member of a group. ip defines an IP which is allowed to send fencing requests for members of this group (e.g. for multicast). It is highly recommended that this be used in conjunction with a key file. EXAMPLE
fence_virtd { listener = "multicast"; backend = "checkpoint"; } # this is the listeners section listeners { multicast { key_file = "/etc/cluster/fence_xvm.key"; } } backends { libvirt { uri = "qemu:///system"; } } groups { group { ip = "192.168.1.1"; uuid = "44179d3f-6c63-474f-a212-20c8b4b25b16"; uuid = "1ce02c4b-dfa1-42cb-b5b1-f0b1091ece60"; } } SEE ALSO
fence_virtd(8), fence_virt(8), fence_xvm(8), fence(8) fence_virtd.conf(5)
All times are GMT -4. The time now is 11:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy